package net.zjitc.entity.Vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import net.zjitc.entity.Role;

import java.util.List;

@Data
@TableName("sp_permission")
public class RolePermissionVo {
    @TableId(value = "ps_id",type = IdType.AUTO)
    private Integer id;
    @TableField("ps_name")
    private String authName;
    private Integer ps_pid;
    private String ps_c;
    private String ps_a;
    private String ps_level;
    @TableField(exist = false)
    List<RolePermissionVo> children;
    @TableField(exist = false)
    private String path;

    public void setPsPid(Integer ps_pid) {
        this.ps_pid = ps_pid;
    }

    public void setPsC(String ps_c) {
        this.ps_c = ps_c;
    }

    public void setPsA(String ps_a) {
        this.ps_a = ps_a;
    }

    public void setPsLevel(String ps_level) {
        this.ps_level = ps_level;
    }
}
